import request from "@/utils/request";

//模拟数据，去掉这个调用真实接口
// import mock from "@/utils/mock";

export default {



    addnumjy: (param) => {
        return request({
            url: `/api/v1/model/addModel`,
            method: "POST",
            data: param,
        });
    },

    // login: (param) => {
    //     return request({
    //         url: `/api/toLogin?username=${this.form.username}&password=${this.form.password}`,
    //         method: "POST",
    //         data: param,
    //         dataType: 'json',
    //         headers: {
    //             isToken: false,

    //         }

    //     });
    // },
    login: (param) => {
        return request({
            url: `/api/toLogin`,
            method: "POST",
            data: param,
            dataType: 'json',
            headers: {
                isToken: false,


            },

        });
    },

    searchnumjy: (param) => {
        return request({
            url: `/api/v1/model/getModelList`,
            method: "GET",
            params: param,
        });
    },


    deletedum: (param) => {
        return request({
            url: `/api/v1/model/deleteModel`,
            method: "DELETE",
            data: param,
        });
    },






};
